import { defineConfig } from 'vitepress';
import { sidebar } from './sidebar';
import { nav } from './navigation';

export default defineConfig({
  title: 'Template Vite 文档',
  description: '基于若依的Vue3+TypeScript+Vite项目模板文档',
  lang: 'zh-CN',
  lastUpdated: true,

  themeConfig: {
    nav,
    sidebar,

    socialLinks: [
      // { icon: 'github', link: 'https://github.com/yourorg/template-vite' },
      { icon: 'gitee', link: 'https://gitee.com/sunwxm/vite-template.git' }
    ],

    footer: {
      message: '基于MIT许可发布',
      copyright: 'Copyright © 2023-present 您的组织',
    },

    search: {
      provider: 'local',
    },

    // 最后更新时间
    lastUpdatedText: '最后更新',

    // 文档的编辑链接
    editLink: {
      pattern: 'https://gitee.com/sunwxm/vite-template/edit/main/docs/:path',
      text: '在 Gitee 上编辑此页',
    },
  },
});
